/*
 * PopupUtilities.cpp
 *
 *  Created on: Mar 28, 2012
 *      Author: guillou
 */

#include <stdio.h>
#include <string.h>
#include "PopupUtilities.hpp"

using namespace Popup;

void Utils::dumpBuffer(const void *p_buffer, size_t p_size) {
  for (size_t i = 0; i < p_size; i++) {
    fprintf(stdout, "%02x", ((const unsigned char*) p_buffer)[i]);
    if (((i+1) % 32) == 0) {
      fprintf(stdout, "\n");
    }
  }
  fprintf(stdout, "\n");
}
